package com.zx.onlineeducation.service.vod.util;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.profile.DefaultProfile;

/**
 * 初始化 工具类
 *
 * @author 郑雪
 * @since 2022-01-16
 */
public class InitObject {

    /**
     * 初始化视频点播客户端
     *
     * @param accessKeyId 访问密钥AccessKeyId
     * @param accessKeySecret 访问密钥AccessKeySecret
     * @param regionId 点播服务接入地域
     * @return 开发者社区对象 {@link DefaultAcsClient}
     * @author 郑雪
     * @since 2022-01-16
     */
    public static DefaultAcsClient initVodClient(String accessKeyId, String accessKeySecret, String regionId) {
        DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
        return new DefaultAcsClient(profile);
    }
}
